Skip to content

[node-core-library] Fix FileSystem.isErrnoException#5213

Merged
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:fix-node-errno
Apr 30, 2025
Merged

[node-core-library] Fix FileSystem.isErrnoException#5213
dmichon-msft merged 2 commits intomicrosoft:mainfrom
dmichon-msft:fix-node-errno

Conversation

@dmichon-msft
Copy link
Contributor

Summary

Fixes a gap in FileSystem.isErrnoException for instances where the file system call was not provided with a file path, e.g. fs.readSync, which only takes a file descriptor.

Details

The method was expecting the path property to always be present and be a string, but not all methods are provided with a path.

How it was tested

Added unit tests.

Impacted documentation

None.

@dmichon-msft dmichon-msft merged commit cd02228 into microsoft:main Apr 30, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Apr 30, 2025
@dmichon-msft dmichon-msft deleted the fix-node-errno branch April 30, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants